package com.isoftstone.merchant.dao.payment;

import com.isoftstone.merchant.entity.payment.MPaymentDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MPaymentDetailMapper {

    void insertPaymentDetail(MPaymentDetail mPaymentDetail);

    int deleteByPrimaryKey(MPaymentDetail key);

    int insert(MPaymentDetail record);

    int insertSelective(MPaymentDetail record);

    MPaymentDetail selectByPrimaryKey(MPaymentDetail key);

    int updateByPrimaryKeySelective(MPaymentDetail record);

    int updateByPrimaryKey(MPaymentDetail record);

    void deleteFormPaymentDetailByDoubleId(@Param("payId") Long payId, @Param("projectId")Long projectId);

    /**
     * 根据payId更新paymentDetail
     * @param payId
     * @param factAmt
     * @throws Exception
     */
    void updatePaymentDetail(@Param("payId") Long payId, @Param("factAmt") Double factAmt)throws Exception;
}